package com.wusir.controller;

import com.wusir.pojo.Teacher;
import com.wusir.service.TeacherService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class TeacherController {

    @Resource
    private TeacherService teacherService;

    /**
     * 获取所有教师信息
     *
     * @return 教师信息列表
     */
    @GetMapping("/hello")
    public List<Teacher> hello() {
        return teacherService.selectTeacherAll();
    }

}
